package com.tyc.mb.service.impl;

import com.tyc.mb.common.interceptor.DataSourceSelector;
import com.tyc.mb.mapper.CommonMapper;
import com.tyc.mb.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 类描述
 *
 * @author tyc
 * @version 1.0
 * @date 2021-11-03 13:46:16
 */
@Service
public class CommonServiceImpl implements CommonService {
    @Autowired
    private CommonMapper commonMapper;


    @Override
    @DataSourceSelector
    public void createTable(String targetTableName, String oldTableName) {
        commonMapper.createTable(targetTableName, oldTableName);
    }
}
